package collections.list;

import java.util.NoSuchElementException;

public interface MyList<T> extends Iterable<T>{
	void add(T element);
	void add(int index, T element) throws IndexOutOfBoundsException;
	void addAll(T[] collection);
	void AddAll(int index, T[] collection) throws IndexOutOfBoundsException;
	T get(int index) throws IndexOutOfBoundsException;
	T remove(int index) throws IndexOutOfBoundsException;
	void clear();
	boolean isEmpty();
	void set(int index, T element) throws IndexOutOfBoundsException;
	int indexOf(T element) throws NoSuchElementException;
	int size();
	T[] toArray();
}
